//
//  jobListCell.swift
//  万才信息App
//
//  Created by 陌上互联  on 16/7/16.
//  Copyright © 2016年 万才信息. All rights reserved.
//

import UIKit

//职位的cell
class jobListCell:UITableViewCell{
    
    var job:Job=Job()
    
    @IBOutlet weak var tvFirstWord: UILabel!
    @IBOutlet weak var tvParentJob: UILabel!
    @IBOutlet weak var tvChildJob: UILabel!
    @IBOutlet weak var tvDate: UILabel!
    @IBOutlet weak var tvCompany: UILabel!
    
    func setJob(job:Job){
        self.job=job
        
        tvFirstWord.text=(job.jobName as NSString).substringToIndex(1)
        tvParentJob.text=job.jobName
        tvChildJob.text=job.jobFunctionName
        tvDate.text=job.publishTime
        tvCompany.text=job.companyName
        
    }
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
    }
    
    
}
